Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node: fix the rest of test-process #16026

Open
wants to merge 62 commits into
base: main
Choose a base branch
from
Open

node: fix the rest of test-process #16026

wants to merge 62 commits into from

Conversation

nektro
Copy link
Member

@nektro nektro commented Dec 28, 2024

supercedes #14621
fixes all the tests that don't depend on missing behavior in node:child_process or node:v8
a few missing for process.env that will get a separate followup

not done, pushing now so the robobun comment is at the top

@robobun
Copy link

robobun commented Dec 28, 2024

Updated 9:12 PM PT - Jan 3rd, 2025

@nektro, your commit 83ce207 has 2 failures in #8931:


🧪   try this PR locally:

bunx bun-pr 16026

Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments, let me know when ready for another pass

Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't make error: print as Error:

  1. There are very likely 3rd-party scripts depending on this behavior
  2. It's aesthetically worse

We can make whatever tests that specifically check for the string "Error:" instead check for "error:", or we can make sure it's using util.inspect isntead of Bun.inspect / console.log in the appropriate places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants